aux_source_directory(os _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(os/linux _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(utility _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(container _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(memory _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(maths _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(parse _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(json _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(json/yajl _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(script _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(text _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(compress _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(compress/lzf _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(tinyxml2 _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

aux_source_directory(md5 _SOURCES)
set(CORE_SOURCES ${CORE_SOURCES} ${_SOURCES})

add_library(core${OUTPUT_SUFFIX} ${CORE_SOURCES})

# _COPY_FILES is a fake target
#add_custom_target(_COPY_FILES
#  cp ${PROJECT_SOURCE_DIR}/Source/Common/OS/Unix/mutex.h ${PROJECT_SOURCE_DIR}/Include/sirius
#)
#
#add_dependencies(sirius_core _COPY_FILES)

# start to build testcase
#include(${PROJECT_SOURCE_DIR}/cmake/common_macro.cmake)
#si_add_unit_test(pipe_test sirius_core)
#si_add_unit_test(file2_test sirius_core)
#si_add_unit_test(directory_test sirius_core)
#si_add_unit_test(time_test sirius_core)
